/*
 * TCSS 305 - Project Tetris - Part 1 
 */

package model;

/**
 * Defines the Tetris SPiece.
 * 
 * @author Alan Fowler
 * @version Winter 2012
 */
public class SPiece extends AbstractPiece
{
  
  /**
   * The x and y-coordinates for all rotations of a SPiece.
   */
  private static final int[][][] MY_ROTATIONS = {{{0, 0}, {1, 0}, {1, 1}, {2, 1}},
                                                 {{1, 0}, {0, 1}, {1, 1}, {0, 2}}};
  
  /**
   * Creates a new S piece at the origin (0, 0).
   */
  public SPiece()
  {
      this(0, 0);
  }

  /**
   * Creates a new S piece at the given coordinates.
   * 
   * @param the_x The x coordinate of the Piece.
   * @param the_y The y coordinate of the piece
   */
  public SPiece(final int the_x, final int the_y)
  {
      super(MY_ROTATIONS, the_x, the_y, Block.S);
  }

}
